﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gift.js.swfupload
{
    public partial class upload : System.Web.UI.Page
    {

        /// <summary>
        /// 这个页面主要是上传各种内容没有对图片进行处理的
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                HttpPostedFile jpeg_image_upload = Request.Files["Filedata"];
                //然后把获取的数据流存入session中并命名list
                Session["list"] = jpeg_image_upload.InputStream;
                Response.StatusCode = 200;
                Response.Write("ok");
            }
            catch (Exception ex)
            {
                Response.StatusCode = 500;
                Response.Write("An error occured：" + ex.Message);
                Response.End();
            }
            finally
            {

                Response.End();
            }
        }
    }
}